package com.jprofiler;

import com.TimeUtils;

import java.util.ArrayList;
import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 * @author: csh
 * @Date: 2022/2/5 10:41
 * @Description:
 */
public class JProfilerTest {
    public static void main(String[] args) {
        while (true){
            ArrayList list = new ArrayList();
             for (int i = 0; i < 500; i++) {
                Date data = new Date();
                list.add(data);
            }

             try {
                 TimeUnit.MILLISECONDS.sleep(500);
             }catch (Exception e){
                 e.printStackTrace();
             }
        }
    }
}
